package com.yb.auth.core.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yb.core.constant.DateTimeConstant;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * Copyright (C), 2022-2022, 姚兵
 * Author: 32210
 * Date: 2022/11/13 17:09
 * FileName: SysPermission
 * Description:
 */

@Data
@TableName("t_sys_permission")
public class SysPermission {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    @TableField("`desc`")
    private String desc;

    @DateTimeFormat(pattern = DateTimeConstant.DATETIME_PATTERN)
    @JsonFormat(pattern =  DateTimeConstant.DATETIME_PATTERN)
    private LocalDateTime createTime;

    @DateTimeFormat(pattern = DateTimeConstant.DATETIME_PATTERN)
    @JsonFormat(pattern =  DateTimeConstant.DATETIME_PATTERN)
    private LocalDateTime updateTime;
}
